<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>
	<body ng-app="app" >
		<div ng-controller="ctrl"  >
			显示:<input type="checkbox" ng-model="name" >
			<div ng-show="name" >
				我显示了！
			</div>
			<div ng-if="name" >
				我显示了！ng-if
			</div><br/>
			<input type="text" ng-disabled="name" >
		</div>
		<script>
            var app=angular.module("app",[]);
            app.controller("ctrl",["$scope",function($scope){

            }]);

		</script>
	</body>
</html>
